package com.xique.park.controller.client.web.bean.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xique.common.core.annotation.Excel;
import com.xique.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 开关闸记录对象 t_opengate_records
 *
 * @author xique
 * @date 2022-01-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_opengate_records")
public class OpengateRecords extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 车场id
     */
    private Long parkId;

    /**
     * 开关类型：open,close
     */
    @Excel(name = "开关类型：open,close")
    private String type;

    /**
     * 开关闸备注原因
     */
    private String remark;

    /**
     * 操作人
     */
    @Excel(name = "操作人")
    private Long oprUser;

    /**
     * 操作时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date oprTime;

    /**
     * 岗亭操作人
     */
    @Excel(name = "岗亭操作人")
    private Long oprClientUser;

    /**
     * 开闸关闸是否成功状态
     */
    private String status;

    /**
     * 设备sn
     */
    private String sn;
    private String pic;

}
